package com.example.demo.disruptor;

import com.lmax.disruptor.EventFactory;

/**
 * @Author: liull
 * @Description:In order to allow the Disruptor to preallocate these events for us, we need to an EventFactory that will perform the construction
 * @Date: Created in 17:33 2021/3/31
 * @Modified By:
 */
public class LongEventFactory implements EventFactory<LongEvent> {
    public LongEvent newInstance() {
        return new LongEvent();
    }
}
